package com.fight.strive.sys.modules.scheduler.service.impl;

import com.fight.strive.sys.modules.common.ReStatus;
import com.fight.strive.sys.modules.scheduler.service.IStriveJob;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * url为/group/path; 即/test/test
 * 如果同一个接口(IStriveJob)要生成多个不同的代理，则group不能一样，
 * 否则只能生成一个，导致其他的path无法调用
 */
@Slf4j
@DubboService(group = "test", path = "/test", interfaceClass = IStriveJob.class)
public class StriveJobImpl implements IStriveJob {

    @Override
    public ReStatus<String> handler(String params) {
        log.info(params);
        return ReStatus.success();
    }
}
